import axiosInstance from "./axios";
// 获取验证码
export function getCode() {
  return axiosInstance({
    url: '/auth/code',
    method: 'get'
  })
}
// 管理员登录
export function login(LoginParams:object) {
  return axiosInstance({
    url: '/auth/login',
    method: 'post',
    data:LoginParams
  })  
}

// 使用token登录
export function loginByToken(token:string) {
  return axiosInstance({
    url: '/auth/loginByToken?token=' + token,
    method: 'post',
  })
}